package org.jeecg.modules.scm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: scm_cloud_chain_transfer_application
 * @Author: jeecg-boot
 * @Date: 2021-11-09
 * @Version: V1.0
 */
@Data
@TableName("scm_cloud_chain_transfer_application")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "云链单转让申请关联对象", description = "scm_cloud_chain_transfer_application")
public class ScmCloudChainTransferApplication implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 云链单转让申请关联表ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "云链单转让申请关联表ID")
    private String id;
    /**
     * 申请号
     */
    @Excel(name = "申请号", width = 15)
    @ApiModelProperty(value = "申请号")
    private String transferApplyId;
    /**
     * 数字债权凭证编号
     */
    @Excel(name = "数字债权凭证编号", width = 15)
    @ApiModelProperty(value = "数字债权凭证编号")
    private String chainNo;
    /**
     * 最后修改用户
     */
    @ApiModelProperty(value = "最后修改用户")
    private String updateBy;
    /**
     * 最后修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "最后修改时间")
    private Date updateTime;
    /**
     * 建立用户
     */
    @ApiModelProperty(value = "建立用户")
    private String createBy;
    /**
     * 建立日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "建立日期")
    private Date createTime;

    public ScmCloudChainTransferApplication(String transferApplyId, String chainNo) {
        this.transferApplyId = transferApplyId;
        this.chainNo = chainNo;
    }
}
